package xyz.lovegu.server.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 落亦-
 * @Date: 2019/11/21 21:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    private Integer code;
    private String msg;

    public static final ResultObj LOGIN_SUCCESS=new ResultObj(Constant.OK,"登陆成功");
    public static final ResultObj LOGIN_ERROR_PASS=new ResultObj(Constant.ERROR,"用户名或密码错误");
    public static final ResultObj LOGIN_ERROR_CODE=new ResultObj(Constant.ERROR,"验证码错误");

    public static final ResultObj ADD_SUCCESS = new ResultObj(Constant.OK,"添加成功");
    public static final ResultObj ADD_ERROR = new ResultObj(Constant.ERROR,"添加失败");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(Constant.OK,"删除成功");
    public static final ResultObj DELETE_ERROR = new ResultObj(Constant.ERROR,"删除失败");

    public static final ResultObj USER_NOT_EXIST = new ResultObj(Constant.ERROR,"用户不存在");
    public static final ResultObj NOTICE_NOT_EXIST = new ResultObj(Constant.ERROR,"公告不存在");
    public static final ResultObj CLASS_NOT_EXIST = new ResultObj(Constant.ERROR,"班级不存在");
    public static final ResultObj HEALTH_NOT_EXIST = new ResultObj(Constant.ERROR,"健康表不存在");
    public static final ResultObj LEAVE_NOT_EXIST = new ResultObj(Constant.ERROR,"请假表不存在");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(Constant.OK,"修改成功");
    public static final ResultObj UPDATE_ERROR = new ResultObj(Constant.ERROR,"修改失败");

    public static final ResultObj RESET_SUCCESS = new ResultObj(Constant.OK,"重置成功");
    public static final ResultObj RESET_ERROR = new ResultObj(Constant.ERROR,"重置失败");

    public static final ResultObj SYNCCACHE_SUCCESS = new ResultObj(Constant.OK,"同步缓存成功");

    public static final ResultObj DELETE_QUERY = new ResultObj();


}
